<template>
  <div>
    <uni-popup ref="popup" type="share" safeArea backgroundColor="#fff">
      <uniPopupElectricCable
        :title="title"
        :data="data"
        asdbad="11"
        @select="select"
      ></uniPopupElectricCable>
    </uni-popup>
  </div>
</template>

<script>
import uniPopupElectricCable from "@/component/uni-popup-electricCable/uni-popup-electricCable.vue";
export default {
  components: {
    uniPopupElectricCable
  },
  data() {
    return {
      assetCode: "",
      prjId: "",
      labelId: "",
      data: [],
      // true是设计方案，false是乙供清单
      isbsupply: true,
    };
  },
  methods: {
    opener(item) {
		console.log(item)
		 this.data = item;
     this.$refs.popup.open("share");
    },
  
  select(index,catCodeer,e) {
	  let that=this;
	  console.log("点击了那个",e,index,catCodeer)
	  if(e){
		this.$emit("mylick",e)
		that.$refs.popup.close()
	  }else{
		  uni.showModal({
		  	title: '温馨提示',
		  	content: '请先选择物料种类',
		  	showCancel: false,
          confirmColor:'#eb4b4b',
		  })
	  }
	 
    },
  },
  computed: {
    title() {
      return "物料种类"
    },
  },
};
</script>
